//
//  GKZYRankingTableViewCell.m
//  GKZYAid
//
//  Created by tony on 16/3/9.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYRankingTableViewCell.h"
#import "MyDefine.h"
#import <UIImageView+WebCache.h>


@implementation GKZYRankingTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    if ( self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
    }
    return self;
}


-(void)configureTheCellWithModel:(GKZYRankingListModel *)model{

    NSDictionary *dict = model.cover;
    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5 , KmainScreenBoundsWidth -20, (KmainScreenBoundsWidth -20)*3/7)];
    [image sd_setImageWithURL:[NSURL URLWithString:dict[@"url"]]];
    [self addSubview:image];

    
    self.frame = CGRectMake(0, 0, KmainScreenBoundsWidth, CGRectGetMaxY(image.frame)+5);
    
}


@end
